<?php

namespace App\model;

use App\Models\day0916model;
use Composer\DependencyResolver\Request;
use Illuminate\Database\Eloquent\Model;


class Migrationmodel extends Model
{

    public function login(Request $request){
        $data['name']=$request->install("name");
        $data['pwd']=$request->install("pwd");
        $res = day0916model::show($data);
        if ($res){
            return "登录成功";
        }else{
            return "登录失败";
        }
    }
}
